Skip to content

fix(docker): add restart: always to redis, backend, frontend#555

Open
PeterNashaat wants to merge 1 commit into
developmentfrom
development_restart_always
Open

fix(docker): add restart: always to redis, backend, frontend#555
PeterNashaat wants to merge 1 commit into
developmentfrom
development_restart_always

Conversation

@PeterNashaat

Copy link
Copy Markdown
Collaborator

What

Add restart: always to redis_db, cshr-backend, and cshr-frontend in docker/docker-compose.yml. Previously only postgres_db had a restart policy.

Why

After a VM reboot, the containers without a restart policy stay Exited, so the site returns 502 until someone manually runs the stack back up. With restart: always the whole stack self-recovers on reboot or Docker daemon restart.

Testing

Verified on the staging instance: applied the change, cycled the stack via make docker-down / make docker-up, and confirmed all four containers come back with restart=always and the site serves (frontend + backend health both 200).

Only postgres_db had a restart policy, so after a VM reboot the other
containers stayed Exited and the site returned 502 until a manual
'docker compose up'. Add restart: always so the stack self-recovers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant